<div class="footer mr-t20">

    <!--<p class="link region"> <a href="http://demo.0516city.com/?computer=1"> 电脑版 </a> <a href="./"> 触屏版 </a> <a href="#"> 苹果客户端 </a> <a class="#"> Android客户端 </a> </p>-->
    <p class="region">

        {:C("COPYRIGHT")} </p>
    <div class="favLink region"> <a href="http://www.huiyou365.net/" target="_blank"> powered by <a href="http://www.huiyou365.net/" target="_blank">汇友科技</a> </a> </div>
</div>
<link href="__CSS__/global_nav.css?v=20140408" type="text/css" rel="stylesheet"/>

<div class="global-nav">
    <div class="global-nav__nav-wrap">
        <div class="global-nav__nav-item">
            <a href="/" class="global-nav__nav-link">
                <i class="global-nav__iconfont global-nav__icon-index">&#xf0001;</i>
                <span class="global-nav__nav-tit">首页</span>
            </a>
        </div>

        <div class="global-nav__nav-item">
            <a href="{:U('Cate/index')}" class="global-nav__nav-link">
                <i class="global-nav__iconfont global-nav__icon-category">&#xf0002;</i>
                <span class="global-nav__nav-tit">分类</span>
            </a>
        </div>
        <div class="global-nav__nav-item">
            <a href="{:U('Goods/index')}" class="global-nav__nav-link">
                <i class="global-nav__iconfont global-nav__icon-search">&#xf0003;</i>
                <span class="global-nav__nav-tit">搜索</span>
            </a>
        </div>
        <div class="global-nav__nav-item">
            <a href="{:U('Cart/index')}" class="global-nav__nav-link">
                <i class="global-nav__iconfont global-nav__icon-shop-cart">&#xf0004;</i>
                <span class="global-nav__nav-tit">购物车</span>
                <if condition="!empty($cart_number)"><span class="global-nav__nav-shop-cart-num" id="carId">{$cart_number}</span></if>
            </a>
        </div>
        <div class="global-nav__nav-item">
            <a href="{:U('Order/all')}" class="global-nav__nav-link">
                <i class="global-nav__iconfont global-nav__icon-my-yhd">&#xf0005;</i>
                <span class="global-nav__nav-tit">我的订单</span>
            </a>
        </div>
    </div>
    <div class="global-nav__operate-wrap">
        <span class="global-nav__yhd-logo"></span>
        <if condition="!empty($cart_number)"><span class="global-nav__operate-cart-num" id="globalId">{$cart_number}</span></if>
    </div>
</div>
<script type="text/javascript" src="__JS__/zepto.min.js?v=20140408"></script>
<script type="text/javascript">
    Zepto(function($){
        var $nav = $('.global-nav'), $btnLogo = $('.global-nav__operate-wrap');
        //点击箭头，显示隐藏导航
        $btnLogo.on('click',function(){
            if($btnLogo.parent().hasClass('global-nav--current')){
                navHide();
            }else{
                navShow();
            }
        });
        var navShow = function(){
            $nav.addClass('global-nav--current');
        }
        var navHide = function(){
            $nav.removeClass('global-nav--current');
        }

        $(window).on("scroll", function() {
            if($nav.hasClass('global-nav--current')){
                navHide();
            }
        });
    })
    function get_search_box(){
        try{
            document.getElementById('get_search_box').click();
        }catch(err){
            document.getElementById('keywordfoot').focus();
        }
    }
</script>

